<!--<?php
!$webPageTitle && $webPageTitle = $db_bbsname;
$metaVersion = $wind_version;
$wind_repair && $metaVersion .= '(' . $wind_repair . ')';
print <<<EOT
--><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset" />
<title>$webPageTitle - Powered by phpwind</title>
<meta name="generator" content="phpwind v{$metaVersion}" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<link rel='archives' title='$db_bbsname' href='$db_bbsurl/simple/' />
<!--
EOT;
if($fid){print <<<EOT
--><link rel="alternate" type="application/rss+xml" title="RSS" href="$db_bbsurl/rss.php?fid=$fid" />
<!--
EOT;
}print <<<EOT
--><base id="headbase" href="$db_bbsurl/" />
<!--
EOT;
if(SCR == 'read' && $link_ref_canonical){print <<<EOT
--><link rel="canonical" href="$link_ref_canonical" />
<!--
EOT;
}print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$imgpath/pw_core.css?101128" media="all" />
<!--
EOT;
@include Pcv($css_path);
if($pwModeCss){print <<<EOT
--><link rel="stylesheet" type="text/css" href="$pwModeCss" />
<!--
EOT;
}if($_COOKIE['widthCfg'] == 1){print <<<EOT
-->
<link id="fullscreenStyle" rel="stylesheet" type="text/css" href="$imgpath/fullscreen.css" media="all" />
<!--
EOT;
}print <<<EOT
-->
<SCRIPT type="text/javascript" language="JavaScript" src="js/core/core.js"></SCRIPT>
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<script language="JavaScript">var imgpath = '$imgpath';var verifyhash = '$verifyhash';var modeimg = '$pwModeImg';var modeBase = '$baseUrl';var winduid = '$winduid';var windid	= '$windid';var groupid	= '$groupid';var basename = '$basename';var temp_basename = '$temp_basename';
function shiftStyle(){
	if (getObj('widthCfg').innerHTML=='[切换到宽版]') {
		if(!getObj('fullscreenStyle')) {
				var l = document.createElement('link');
				l.id="fullscreenStyle";
				l.rel="stylesheet";
				l.type="text/css";
				l.href="$imgpath/fullscreen.css";
				l.media="all";
				document.body.appendChild(l);
		}else {
			getObj('fullscreenStyle').disabled = false;
		}
		getObj('widthCfg').innerHTML='[切换到窄版]';
		var widthCfg = 1;
	} else {
		var widthCfg = 0;
		getObj('fullscreenStyle').disabled=true;
		getObj('widthCfg').innerHTML='[切换到宽版]';
	}
	SetCookie('widthCfg',widthCfg);	
};
</script>
</head>
<body onKeyDown="try{keyCodes(event);}catch(e){}">
<!-- 

-->
<div class="wrap">
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Site.Header',$fid);
if($htmlAdvert){print <<<EOT
-->
<div class="tac mb5">$htmlAdvert</div>
<!--
EOT;
}
global $kxbdChannelName;//这个变量是定义动态logo的
if (!$kxbdChannelName){
	$kxbdChannelName='bbs';
}
@include R_P.'mode/kxbd/common/kxbd_header_nav.htm';
print <<<EOT
-->
<div class="main-wrap">
<div id="main">
<!--
EOT;
?>-->